package com.sxsihe.heartmate;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import cn.pedant.SweetAlert.widget.SweetAlertDialog;
import com.sxsihe.heartmate.util.HttpPostUtil;
import com.sxsihe.heartmate.util.SharePreferenceUtil;
import com.sxsihe.heartmate.view.CustomWaittingDialog;
import org.json.JSONException;
import org.json.JSONObject;

public class UserRegister2Activity extends Activity {

    private AlertDialog myDialog = null;
    private Button btn_validate;

    public void onCreate(Bundle bundle){
        super.onCreate(bundle);
        setContentView(R.layout.user_register2);
        btn_validate = (Button)findViewById(R.id.btn_validate);
        btn_validate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                myDialog = new AlertDialog.Builder(UserRegister2Activity.this).create();
                myDialog.show();
                myDialog.getWindow().setContentView(R.layout.my_dialog);
                myDialog.getWindow()
                        .findViewById(R.id.button_close)
                        .setOnClickListener(new View.OnClickListener() {
                            @Override
                            public void onClick(View v) {
                                myDialog.dismiss();
                            }
                        });
            }
        });



    }



}
